{template nheader.html}
<link href="{THEME_PATH}admin/global/css/publics.css?t={time()}.{rand(10000,9999999)}" rel="stylesheet"  />
<script src="{THEME_PATH}admin/global/scripts/publics.js?t={time()}.{rand(10000,9999999)}"></script>
<link href="{THEME_PATH}admin/global/css/form_default.css?t={time()}.{rand(10000,9999999)}" rel="stylesheet"  />
<div class="page-bar">

    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <a href="{dr_url('publics/add')}">{fc_lang('添加公开课')}</a>
            <i class="fa fa-circle"></i>
        </div>
    </div>
</div>
<div class="class-type-search">
    <a class="all-class" href="admin.php?c=publics&m=main">全部课程(<span>{$total}</span>)</a>
    <a class="shelf" href="admin.php?c=publics&m=main&ground=1">已上架(<span>{$ground}</span>)</a>
    <a class="un-shelf" href="admin.php?c=publics&m=main&ground=0">未上架(<span>{$noground}</span>)</a>
</div>
<div class="select-item-box">
    <div>
        <div>
            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <div class="height-search-table">
                        <a class="higher-search">高级检索</a>
                    </div>
                    <th class="search-th-title" colspan="2"><span style='font-family: "FontAwesome"; font-weight: 400;'> </span>筛选查询</th>
                    <!-- <th class="search-th-box"><a class="higher-search">高级检索</a></th> -->
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="search-name">输入搜索：</td>
                    <td>
                        <form class="searchform" action="" method="post" id="searchform" name="searchform">
                            <input class="select-data" type="text" name="name" id="dr_name" value="" style="width:200px;" placeholder="课程名称/课程编号">
                            <button type="submit" class="select-btn">查询结果</button>
                        </form>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="portlet mylistbody">
    <div class="portlet-body">
        <div class="table-scrollable">

            <table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr>
                    <!--<div style="border-left: 0px;" class="data-list">-->
                        <!--<a class="class-list-btn">{fc_lang('导出课程列表')}</a>-->
                        <!--<form class="sortingform" action="" method="post" id="sortingform" name="sortingform">-->
                            <!--<select class="select-item" name="item">-->
                                <!--<option value="">{fc_lang('显示条数')}</option>-->
                                <!--<option value="20">20</option>-->
                                <!--<option value="30">30</option>-->
                                <!--<option value="40">40</option>-->
                                <!--<option value="50">50</option>-->
                            <!--</select>-->
                            <!--<select class="select-item" name="sorting">-->
                                <!--<option value="">{fc_lang('排序方式')}</option>-->
                                <!--<option value="按时间倒序显示">按时间倒序显示</option>-->
                                <!--<option value="按时间正序显示">按时间正序显示</option>-->
                                <!--<option value="按金额正序排列">按金额正序排列</option>-->
                                <!--<option value="按金额倒序排列">按金额倒序排列</option>-->
                            <!--</select>-->
                        <!--</form>-->
                    <!--</div>-->
                    <th align="left" colspan="10" style="border-right: 0px;"><span style='font-family: "FontAwesome";'></span> {fc_lang('数据列表')}</th>
                </tr>
                <tr>
                    <th align="left">{fc_lang('<input type="checkbox" name="course_id"  class="selectallinput">')}</th>
                    <th align="left">{fc_lang('编号')}</th>
                    <th align="left" width="8%">{fc_lang('课程封面')}</th>
                    <th align="left">{fc_lang('课程名称')}</th>
                    <th align="left">{fc_lang('单价/编号')}</th>
                    <th align="left">{fc_lang('课程状态')}</th>
                    <th align="left">{fc_lang('排序')}</th>
                    <th align="left">{fc_lang('分类')}</th>
                    <!--<th align="left">{fc_lang('数量限制')}</th>-->
                    <th align="left">{fc_lang('操作')}</th>
                </tr>
                </thead>
                <tbody>
                {loop $list $t}
                    {if $t.is_del  ==1}
                    <tr>
                        <td><input type="checkbox" name="course" value="{$t.id}"></td>
                        <td>{$t.id}</td>
                        <td>
                            <img src="{if !empty($t.cover)}{$t.cover}{else}{HOME_THEME_PATH}../gw/img/demo-order-class.jpg{/if}" alt="" class="order-img-box" width="68">
                        </td>
                        <td>{$t.title}</td>
                        <td class="price-list">
                            <div class="del-price">
                                <span>市场价：</span>
                                <span>¥</span>
                                <span>{$t.course_price}</span>
                            </div>
                            <div class="org-price">
                                <span>售价：</span>
                                <span>¥</span>
                                <span>{$t.market_price}</span>
                            </div>
                        </td>
                        <td>
                            <div class="state">
                                <span>下架：</span>
                                <a class="state-check-box {if $t.is_ground}on{/if}" data="{$t.is_ground}" course_id ="{$t.id}"></a>
                            </div>
                        </td>
                        <td>{$t.market_sort}</td>
                        <!-- <td>{$t.name}</td> -->
                        <td >
                            <div class="classification">
                                <div class="statues">
                                    <span>{$t.course_type}</span><span>/</span>
                                </div>
                                <div class="grade">
                                    <span>{$t.grade}</span><span>/</span>
                                </div>
                                <div class="subject">
                                    <span>{$t.subject}</span>
                                </div>
                            </div>
                        </td>
                        <!-- <td>{$t.status}</td> -->
                        <!--<td>100</td>-->
                        <td>
                            <a href="{dr_url('publics/view',array('id'=>$t.id))}">查看</a>
                            <a href="{dr_url('publics/edit',array('id'=>$t.id))}">编辑</a>

                                <a  href="javascript:;"  onclick="return dr_dialog_del('您确定要这样操作吗？','admin.php?c=publics&m=del&id={$t.id}');">删除</a>


                        </td>
                    </tr>
                    {/if}
                {/loop}
                <tr>
                    <th align="left" style="border-right: 0px;">{fc_lang('<input type="checkbox" name="sex" value="male" class="selectallinput">')}</th>
                    <th align="left" colspan="10" style="border-left: 0px;text-align: left;" class="data-list">
                        <form class="batchform" action="" method="post" id="batchform" name="batchform">
                            <select class="select-item" name="batch">
                                <option value="">{fc_lang('批量操作')}</option>
                                <option value="1">商品上架</option>
                                <option value="0">商品下架</option>
                                <!--<option value="3">移入回收站</option>-->
                            </select>
                            <a class="class-list-btn" href="javascript:;">{fc_lang('确定')}</a>
                            <div id="pages">{fc_lang('共%s页',$pages)}/{fc_lang('共%s条数据', $total)}</div>
                        </form>
                    </th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="higher-search-form" id="higher-search-form">
    <div class="part-cont">
        <div class="close-form"><i class="fas fa-times"></i></div>
        <div>
            <p class="form-main-title">高级检索</p>
        </div>
        <form action="" method="post" id="higher-search">
            <div class="select-2-col">
                <div class="input-wrap">
                    <select class="select-item" name="grade">
                        <!--<option value="初一">初一</option>-->
                        <!--<option value="初二">初二</option>-->
                        <!--<option value="初三">初三</option>-->
                        <!--<option value="高一">高一</option>-->
                        <!--<option value="高二">高二</option>-->
                        <!--<option value="高三">高三</option>-->
                        <option value="">请选择</option>
                        {loop $stages $key $vals}
                        <option value="{$vals}" {if $vals == $param['grade']}selected{/if}>{$vals}</option>
                        {/loop}
                    </select>
                    <div class="select-dic"></div>
                </div>
                <div class="input-wrap">
                    <select class="select-item" name="subject">
                        <option value="">请选择</option>
                        {loop $subjects $k $sub}
                        <option value="{$sub}" {if $sub == $param['subject']}selected{/if}>{$sub}</option>
                        {/loop}
                    </select>
                    <div class="select-dic"></div>
                </div>
                <div class="input-wrap">
                    <select class="select-item" name="course_type">
                        <option value="">请选择</option>
                        {loop $course_type $kc $courses}
                        <option value="{$sub}" {if $courses == $param['course_type']}selected{/if}>{$courses}</option>
                        {/loop}
                        <!--<option value="1V4">1V4</option>-->
                        <!--<option value="1V1">1V1</option>-->
                        <!--<option value="免费试听">免费试听</option>-->
                        <!--<option value="公开课">公开课</option>-->
                        <!--<option value="专题课">专题课</option>-->
                    </select>
                    <div class="select-dic"></div>
                </div>
            </div>
            <div class="click-box">
                <button type="reset" class="reset">重置</button>
                <button type="submit" class="search">开始检索</button>
            </div>
        </form>
    </div>
</div>

{template nfooter.html}